/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    background: #f5f1e8;
    color: #171717;
    overflow-x: hidden;
}

/* ----- 鼠标光晕 ----- */
.cursor {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 180, 120, .35), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 5;
}

/* ----- 导航栏 ----- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: rgba(245, 241, 232, .65);
    backdrop-filter: blur(20px);
    z-index: 20;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.logo:hover {
    opacity: 0.7;
}

/* ----- 导航菜单容器 ----- */
.menu {
    display: flex;
    position: relative;
    gap: 0;
}

.menu a {
    text-decoration: none;
    color: inherit;
    padding: 0 0 8px 0;
    margin-left: 35px;
    position: relative;
    z-index: 2;
}

.menu a:first-child {
    margin-left: 0;
}

.menu a span {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    cursor: pointer;
}

.menu a:hover span {
    color: #b8860b;
}

/* ----- 滑块（滑动小条） ----- */
.menu .slider {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #b8860b;
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    pointer-events: none;
}

.menu a.active span {
    color: #b8860b;
    font-weight: 600;
}

/* ======================================================
   合作咨询 - 页面内容
   ====================================================== */

.page {
    display: none;
    min-height: 100vh;
    padding-top: 90px;
}
.page.active {
    display: block;
}

/* ----- 页面头部 - 动态背景 ----- */
.contact-hero {
    height: 45vh;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -90px;
}

/* 背景层 - 基础图片 */
.contact-hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: 
        linear-gradient(rgba(23, 23, 23, 0.45), rgba(23, 23, 23, 0.55)),
        url("../img/pexels-diva-plavalaguna-6147373.jpg");
    background-size: cover;
    background-position: center;
    animation: heroBgZoom 20s ease-in-out infinite alternate;
    z-index: 1;
}

/* 背景层 - 动态光晕叠加 */
.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.15), transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.08), transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 2;
}

/* 背景缩放动画 */
@keyframes heroBgZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-10px, -8px);
    }
    100% {
        transform: scale(1.12) translate(10px, 8px);
    }
}

/* 光晕流动动画 */
@keyframes heroGlow {
    0% {
        opacity: 0.6;
        transform: translateX(-20px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(20px) scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-10px) scale(0.95);
    }
}

/* 浮动光斑 */
.contact-hero .floating-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
    animation: floatLight 12s ease-in-out infinite alternate;
}

.contact-hero .floating-light:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(201, 168, 76, 0.10);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.contact-hero .floating-light:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(255, 215, 140, 0.08);
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

.contact-hero .floating-light:nth-child(3) {
    width: 250px;
    height: 250px;
    background: rgba(201, 168, 76, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes floatLight {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(60px, -40px) scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.7;
    }
}

.contact-hero-content {
    position: relative;
    z-index: 10;
    padding: 0 8%;
}

/* ----- 白色调流光标题 ----- */
.contact-hero h1 {
    font-size: 72px;
    letter-spacing: -4px;
    font-weight: 600;
    background-image: linear-gradient(120deg, 
        #ffffff 0%, 
        #f5e6c8 20%, 
        #d4af37 40%, 
        #f5e6c8 60%, 
        #ffffff 80%, 
        #d4af37 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
    animation: shimmerWhite 5s linear infinite;
}

@keyframes shimmerWhite {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

.contact-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ----- 联系信息主区域 ----- */
.contact-main {
    padding: 80px 8% 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info .section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.contact-info .section-sub {
    font-size: 16px;
    color: #888;
    margin-bottom: 8px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.contact-card .icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8860b;
}

.contact-card .text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 4px;
}

.contact-card .text .cn {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.contact-card .text .cn+.cn {
    margin-top: 4px;
}

/* ===== 文字流光效果（通用） ===== */
h1,
h2,
.contact-info .section-title {
    background-image: linear-gradient(120deg, #1a1a1a 0%, #3a3a3a 20%, #c9a84c 40%, #4a4a4a 60%, #1a1a1a 80%, #3a3a3a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 0, 0, 0.1);
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

/* ----- 响应式 ----- */
@media (max-width: 900px) {
    .contact-hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }
    .contact-hero p {
        font-size: 17px;
    }
    .menu a {
        margin-left: 18px;
    }
    .menu a span {
        font-size: 14px;
    }
    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .contact-main {
        padding: 50px 5% 40px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 40vh;
        min-height: 280px;
    }
    .contact-hero h1 {
        font-size: 36px;
        letter-spacing: -2px;
    }
    .contact-card {
        padding: 18px 20px;
    }
    .contact-info .section-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .menu a {
        display: none;
    }
    .logo {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .contact-hero h1 {
        font-size: 28px;
        letter-spacing: -1px;
    }
    .contact-hero p {
        font-size: 15px;
        margin-top: 10px;
    }
    .contact-card .icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .contact-card .text .cn {
        font-size: 14px;
    }
    .contact-main {
        padding: 40px 4% 30px;
    }
}
/* ===== 语言切换按钮样式 ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 30px;
    font-size: 14px;
}
.language-switcher .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.language-switcher .lang-btn:hover {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.08);
}
.language-switcher .lang-btn.active {
    color: #b8860b;
    font-weight: 600;
    background: rgba(184, 134, 11, 0.1);
}
.language-switcher .lang-flag { font-size: 16px; }
.language-switcher .lang-name { font-size: 13px; }
.language-switcher .lang-divider { color: #ddd; }

/* 手机端适配：隐藏文字只显示国旗 */
@media (max-width: 768px) {
    .language-switcher { margin-left: 12px; }
    .language-switcher .lang-name { display: none; }
    .language-switcher .lang-flag { font-size: 18px; }
}
@media (max-width: 600px) {
    .language-switcher { margin-left: 8px; }
}